Skip to content

fix: resolve npm security vulnerabilities (31 alerts fixed)#20

Merged
andrea9293 merged 3 commits into
mainfrom
fix/security-vulnerabilities
Jun 4, 2026
Merged

fix: resolve npm security vulnerabilities (31 alerts fixed)#20
andrea9293 merged 3 commits into
mainfrom
fix/security-vulnerabilities

Conversation

@andrea9293

Copy link
Copy Markdown
Owner

Summary

Fix di 31 vulnerabilità di sicurezza npm nel progetto, aggiornando le dipendenze dirette e aggiungendo overrides per le transitive.

Vulnerabilità risolte

Gravità Conteggio
🔴 Critical 2 → 0
🟠 High 20 → 0
🟡 Moderate 8 → 0
🔵 Low 1 → 0

Dipendenze dirette aggiornate

Pacchetto Prima Dopo
fastmcp ^3.24.0 ^4.0.1
@modelcontextprotocol/sdk ^1.12.3 ^1.29.0
@google/genai ^1.19.0 ^2.8.0
multer ^2.1.0 ^2.1.1
semantic-release ^24.2.5 ^25.0.3
tsx ^4.20.3 ^4.22.4
shx ^0.3.4 ^0.4.0
typescript ^5.8.3 ^5.9.3
@semantic-release/npm ^12.0.1 ^13.1.5

Overrides aggiunti (20 pacchetti transitivi)

hono, @hono/node-server, protobufjs, @protobufjs/utf8, axios, ws, fast-uri, undici, path-to-regexp, follow-redirects, qs, picomatch, brace-expansion, file-type, lodash, lodash-es, ip-address, minimatch, express-rate-limit, handlebars, diff

Verifica

  • npm audit: 0 vulnerabilities
  • npm run build: compilazione TypeScript riuscita
  • ✅ Branch: fix/security-vulnerabilities

- Update all direct dependencies to latest versions
- Add overrides for transitive dependencies with security patches
- Fixes 31 dependabot alerts (2 critical, 20 high, 8 moderate, 1 low)
- Fix GHSA-6f5r-5672-72j7: Web UI now binds to 127.0.0.1 by default
  instead of 0.0.0.0 (all interfaces), preventing unauthenticated
  network access to the document management API
- Add WEB_HOST env variable (default: 127.0.0.1) for configuring
  the bind address. Set to 0.0.0.0 to restore previous behavior
- Update unpdf from ^1.2.1 to ^1.6.2 (pdfjs-dist CVE mitigation)
- Document WEB_HOST in README
@andrea9293
andrea9293 merged commit 37159d4 into main Jun 4, 2026
3 checks passed
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant